package com.hjxr.quota.datasource.domain;

import java.math.BigDecimal;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 维度编码详细-对应不同数据源中对维度的不同编码或值定义
 * </p>
 *
 * @author sun
 * @since 2020-09-17
 */
@Data
@TableName("QUOTA_DIMENSION_DETAIL")
@ApiModel(value="QuotaDimensionDetail对象", description="维度编码详情")
@KeySequence(value = "SEQ_QUOTA_DIMENSION_DETAIL", clazz = Integer.class)
public class QuotaDimensionDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "ID", type = IdType.INPUT)
    private Integer id;

    @ApiModelProperty(value = "维度ID")
    @TableField("DIMENSION_ID")
    private Integer dimensionId;

    @ApiModelProperty(value = "维度编码/值")
    @TableField("CODE_VALUE")
    private String codeValue;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JSONField(format = "yyyy/MM/dd")
    private Date updateDate;

    @ApiModelProperty(value = "数据表字段别名表ID")
    @TableField("COLNAME_ID")
    private Integer colnameId;

}
